<!-- 我的磁盘 -->

<template>
  <div>
    <MajorTitle title="磁盘信息" />

    <div v-for="disk in one.diskDataDto" :key="disk.path">
      <MinorTitle :title="disk.path || '/'">
        <div v-if="disk.path">{{ disk.use || '-' }}%</div>
      </MinorTitle>

      <EasyRow col3>
        <ShowText :one="disk" label="总容量" bind="size" />
        <ShowText :one="disk" label="已用空间" bind="used" />
        <ShowText :one="disk" label="剩余空间" bind="have" />
      </EasyRow>
    </div>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyDisk',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],
}
</script>
